<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:76:"D:\phpStudy\WWW\red\public/../application/admin\view\mater\order_detail.html";i:1538302992;s:61:"D:\phpStudy\WWW\red\application\admin\view\public\header.html";i:1534486842;s:61:"D:\phpStudy\WWW\red\application\admin\view\public\footer.html";i:1534487249;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="Shortcut Icon"type="image/x-icon"href="favicon.ico">
    <title><?php echo config('WEB_SITE_TITLE'); ?></title>
    <link href="/static/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/static/admin/css/font-awesome.min.css?v=4.7.0" rel="stylesheet">
    <link href="/static/admin/css/animate.min.css" rel="stylesheet">
    <link href="/static/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <!--<link href="/static/admin/css/plugins/chosen/chosen.css" rel="stylesheet">-->
    <!--<link href="/static/admin/css/plugins/switchery/switchery.css" rel="stylesheet">-->
    <link href="/static/admin/css/style.min.css?v=4.1.0" rel="stylesheet">
    <link href="/static/admin/css/cropper.min.css" rel="stylesheet">
    <link href="/static/admin/css/ImgCropping.css" rel="stylesheet">
    <link href="/static/admin/css/plugins/switch.css" rel="stylesheet">
    <link href="/static/admin/css/plugins/footable/footable.core.css" rel="stylesheet">
    <link href="/static/admin/js/plugins/layui/css/layui.css" rel="stylesheet">
    <link href="/static/admin/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="/static/admin/js/plugins/viewer/viewer.css" rel="stylesheet">
    <link href="/static/admin/js/plugins/swiper/css/swiper.min.css" rel="stylesheet">
    <link href="/static/admin/js/webupload/webuploader.css" rel="stylesheet">
    <link href="/static/admin/js/webupload/style.css" rel="stylesheet">
    <link href="/static/admin/js/plugins/zTree/zTreeStyle.css" rel="stylesheet" >
    <link href="/static/admin/js/plugins/formSelects-v4/formSelects-v4.css" rel="stylesheet" >
    <script src="/static/admin/js/Icon.js"></script>
    <style type="text/css">
    .long-tr th{text-align: center;}
    .long-td td{text-align: center;}
    input{outline:none;}
    .bt{outline:none;}
    body{overflow-y: scroll;}
    .closeP{width:60px;height:60px;text-align: center;line-height: 70px;border-radius:30px;background:rgba(0,0,0,0.5);font-size: 25px;position: fixed;top:-23px;right:-15px;color: #ccc;cursor: pointer;}
    .cha{position:relative;top:1px;right:8px;}
    .closeP:hover{color: white}
    .showP{width: 100%;height: 100vh;overflow: auto;background: rgba(0,0,0,0.5);text-align: center;position: fixed;top: 0;left: 0;z-index: 1000;}
    #chooseicon {margin:20px;}
    #chooseicon ul { margin:5px 0 0 0;}
    #chooseicon ul li{width:41px;height:41px;line-height:41px;border:1px solid #e7e7e7;padding:1px;margin:1px;text-align: center;font-size:18px;}
    #chooseicon ul li:hover{border:1px solid #2c3e50;cursor:pointer;}
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox-content layui-form layui-form-pane">
        <div class="layui-row layui-col-space10 layui-form-item ">
            <div class="layui-form-item">
                <table class="layui-table">
                    <colgroup>
                        <col width="250">
                        <col width="200">
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>商品名</th>
                        <th>数量</th>
                        <th>单价</th>
                        <th>积分</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php if(is_array($data['info']) || $data['info'] instanceof \think\Collection || $data['info'] instanceof \think\Paginator): if( count($data['info'])==0 ) : echo "" ;else: foreach($data['info'] as $key=>$vo): ?>
                    <tr>
                        <td><?php echo $vo['oi_good_name']; ?></td>
                        <td><?php echo $vo['oi_num']; ?></td>
                        <td><?php echo $vo['oi_good_money']; ?></td>
                        <td><?php echo $vo['oi_jifen']; ?></td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                </table>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">订单号</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" value="<?php echo !empty($data['so_number'])?$data['so_number']:''; ?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">下单时间</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" value="<?php echo !empty($data['so_time'])?$data['so_time']:''; ?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">支付时间</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" value="<?php echo !empty($data['so_paytime'])?$data['so_paytime']:''; ?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">支付方式</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" value="<?php if($data['so_type']==1): ?>支付宝<?php elseif($data['so_type']==2): ?>微信<?php endif; ?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">金额</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" value="<?php echo !empty($data['so_money'])?$data['so_money']:''; ?>">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">总数</label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" value="<?php echo $data['so_num']; ?>">
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/admin/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/static/admin/js/content.min.js?v=1.0.0"></script>
<!--<script src="/static/admin/js/plugins/chosen/chosen.jquery.js"></script>-->
<script src="/static/admin/js/plugins/iCheck/icheck.min.js"></script>
<script src="/static/admin/js/plugins/layer/laydate/laydate.js"></script>
<!--<script src="/static/admin/js/plugins/switchery/switchery.js"></script>&lt;!&ndash;IOS开关样式&ndash;&gt;-->
<script src="/static/admin/js/jquery.form.js"></script>
<script src="/static/admin/js/plugins/layer/layer.js"></script>
<script src="/static/admin/js/plugins/layui/layui.js"></script>
<script src="/static/admin/js/wk.js"></script>
<script src="/static/admin/js/state.js"></script>
<!--<script src="/static/admin/js/plugins/validate/jquery.validate.min.js"></script>-->
<!--<script src="/static/admin/js/plugins/validate/messages_zh.min.js"></script>-->
<script src="/static/admin/js/cropper.min.js"></script>
<script src="/static/admin/js/plugins/footable/footable.all.min.js"></script>
<script src="/static/admin/js/plugins/viewer/viewer.js"></script>
<!--<script src="/static/admin/js/plugins/excel-gen/jszip.js"></script>-->
<!--<script src="/static/admin/js/plugins/excel-gen/FileSaver.js"></script>-->
<!--<script src="/static/admin/js/plugins/excel-gen/excel-gen.js"></script>-->
<script src="/static/admin/js/plugins/swiper/js/swiper.min.js"></script>
<script src="/static/admin/js/common.js"></script>
<script src="/static/admin/js/webupload/webuploader.js"></script>
<script src="/static/admin/js/plugins/ueditor/ueditor.config.js" ></script>
<script src="/static/admin/js/plugins/ueditor/ueditor.all.js" ></script>
<script src="/static/admin/js/plugins/zTree/jquery.ztree.core-3.5.js"></script>
<script src="/static/admin/js/plugins/zTree/jquery.ztree.excheck-3.5.js"></script>
<script src="/static/admin/js/plugins/zTree/jquery.ztree.exedit-3.5.js"></script>
<script src="/static/admin/js/plugins/formSelects-v4/formSelects-v4.js"></script>
<script>
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
    //tooltip提示
    $("[data-toggle='tooltip']").tooltip();
    //图片灯箱
    function imgDisplay(obj) {
        var src = $(obj).attr("src");
        var imgHtml = '<div class="showP"><img src=' + src + ' style="margin-top: 30px;height:90%;margin-bottom: 50px;"  /><p class="closeP"  onclick="closePicture(this)"><span class="cha">×</span></p></div>'
        $('body').append(imgHtml);
    }

    //关闭图片灯箱
    function closePicture(obj) {
        $(obj).parent("div").remove();
    }
    //关闭自动填充
    $('input').attr('autocomplete',"off");

    //layuitable表格重载
    function tableReload(){
        layui.use('table', function () {
            var table = layui.table;
            table.reload('testReload', {
                page: {
                    curr: 1 //重新从第 1 页开始
                }
                , where: {}
            });
        });
    }

    // //IOS开关样式配置 & chosen-select初始化
    // var elem = document.querySelector('.js-switch');
    // var switchery = new Switchery(elem, {
    //     color: '#1AB394'
    // });
    // var config = {
    //     '.chosen-select': {},
    // }
    // for (var selector in config) {
    //     $(selector).chosen(config[selector]);
    // }

    //view初始化查看图片
    function view(obj){
        $(obj).viewer({
            url: 'data-original',
        });
    }
</script>

<script>
    //chose地区三级联动
    function area(obj,type){
        if($(obj).val() == ''){
            if(type == 'province'){
                $("#city").empty();
                $("#city").append('<option value="">---- 所在市 ----</option>');
                $("#city").trigger("chosen:updated");
                $("#district").empty();
                $("#district").append('<option value="">---- 所在区 ----</option>');
                $("#district").trigger("chosen:updated");
            }else if(type == 'city'){
                $("#district").empty();
                $("#district").append('<option value="">---- 所在区 ----</option>');
                $("#district").trigger("chosen:updated");
            }
            return false;
        }
        $.ajax({
            url:"<?php echo url('admin/Base/place'); ?>",
            dataType:"json",
            data:'id='+$(obj).val(),
            type:'post',
            success:function(res){
                var opt = null;
                $.each(res.msg,function(key,vo){
                    opt = opt+"<option value="+vo.district_id+">"+vo.district+"</option>";
                })
                if(type == 'province'){
                    $("#city").empty();
                    $("#city").append('<option value="">---- 所在市 ----</option>');
                    $("#city").append(opt);
                    $("#city").trigger("chosen:updated");
                    $("#district").empty();
                    $("#district").append('<option value="">---- 所在区 ----</option>');
                    $("#district").trigger("chosen:updated");
                }else if(type == 'city'){
                    $("#district").empty();
                    $("#district").append('<option value="">---- 所在区 ----</option>');
                    $("#district").append(opt);
                    $("#district").trigger("chosen:updated");
                }
            }
        })
    }
    //layui三级联动
    layui.use(['form'], function() {
        var form = layui.form
            , layer = layui.layer
        form.on('select(province)', function(data){
            getArea("province",data.value);
        });
        form.on('select(city)', function(data){
            getArea("city",data.value);
        });
        function getArea(type,id){
            $.ajax({
                url:"<?php echo url('admin/Base/place'); ?>",
                dataType:"json",
                data:'id='+id,
                type:'post',
                success:function(res){
                    var opt = '';
                    $.each(res.msg,function(key,vo){
                        opt = opt+"<option value="+vo.district_id+">"+vo.district+"</option>";
                    })
                    if(type=="province"){
                        $("#city").empty();
                        $("#city").append('<option value="">---- 请选择市 ----</option>');
                        $("#district").empty();
                        $("#district").append('<option value="">---- 请选择区 ----</option>');
                        form.render('select','district');
                        $("#city").append(opt);
                        form.render('select','city');
                    }else if(type == "city"){
                        $("#district").empty();
                        $("#district").append('<option value="">---- 请选择区 ----</option>');
                        $("#district").append(opt);
                        form.render('select','district');
                    }
                }
            })
        }
    })
</script>
<script>
    // //tips框
    // $('#offAll').on('mouseover', function(){
    //     var that = this;
    //     layer.tips('<span style="color:#686B6D;"><i class="fa fa-info-circle"></i> 若未勾选默认禁用全部</span>', that,{tips: [2, '#F2F2F2'],time: 10000});
    // });
    // //tips框
    // $('#onAll').on('mouseover', function(){
    //     var that = this;
    //     layer.tips('<span style="color:#686B6D;"><i class="fa fa-info-circle"></i> 若未勾选默认启用全部</span>', that,{tips: [2, '#F2F2F2',''],time: 10000});
    // });
    //tips框
    // $('#excel').on('mouseover', function(){
    //     var that = this;
    //     layer.tips('<span style="color:#686B6D;"><i class="fa fa-info-circle"></i> 导出筛选完成数据</span>', that,{tips: [2, '#F2F2F2',''],time: 10000});
    // });
    // //关闭tips框
    // $('#offAll,#onAll,#export,#excel').on('mouseout', function(){
    //     layer.closeAll('tips');
    // });

    //layui公共操作
    layui.use(['form','table'], function() {
        var form = layui.form
            , layer = layui.layer
            ,table = layui.table
        //重置搜索框
        $('#empty').on('click', function () {
            $('.search').val('');
            // $(".search").trigger("chosen:updated");
            $('select').each(function (i, j) {
                $(j).find("option:selected").attr("selected", false);
                form.render('select')
            })
        });
        //表格排序
        table.on('sort(demo)', function(obj){
            table.reload('testReload', {
                initSort: obj //记录初始排序，如果不设的话，将无法标记表头的排序状态
                ,where: { //请求参数
                    field: obj.field //排序字段
                    ,order: obj.type //排序方式
                }
            });
        });
        //监听搜索
        form.on('submit(LAY-search)', function (data) {
            //执行重载
            table.reload('testReload', {
                page: {
                    curr: 1 //重新从第 1 页开始
                }
                ,where: data.field
            });
        });
    });
    //获取serialize数据转对象
    $.fn.parseForm=function(){
        var serializeObj={};
        var array=this.serializeArray();
        var str=this.serialize();
        $(array).each(function(){
            if(serializeObj[this.name]){
                if($.isArray(serializeObj[this.name])){
                    serializeObj[this.name].push(this.value);
                }else{
                    serializeObj[this.name]=[serializeObj[this.name],this.value];
                }
            }else{
                serializeObj[this.name]=this.value;
            }
        });
        return serializeObj;
    }
</script>

</body>
</html>